package com.ruoyi.web.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.web.domain.BhReport;
import com.ruoyi.web.domain.vo.ReportPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BhReportMapper extends BaseMapperPlus<BhReportMapper, BhReport, ReportPageVO> {
    int delReport(Integer id);

    int insert(BhReport record);

    int insertSelective(BhReport record);

    BhReport selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BhReport record);

    @DataPermission({
        @DataColumn(key = "deptName", value = "co_id")
    })
    Page<ReportPageVO> getReportPage(Page<Object> build, @Param(Constants.WRAPPER) LambdaQueryWrapper<BhReport> lqw);
}
